/*
 * ShowMainWindowAction.java
 *
 * Copyright 2007, 2008 Tiberiumlabs
 *
 * This file is part of Tiberiumlabs Lailaps.
 *
 * Tiberiumlabs Lailaps is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 3 of the License, or
 * (at your option) any later version.
 *
 * Tiberiumlabs Lailaps is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

package org.tiberiumlabs.lailaps.actions.system;

import java.awt.Window;
import javax.swing.ImageIcon;

/**
 *
 * @author <a href="mailto:paranoid.tiberiumlabs@gmail.com">Paranoid</a>
 */
public class ShowMainWindowAction extends AbstractShowWindowAction {

    private String showName;
    private String showShortDesc;
    private String showLongDesc;
    private String hideName;
    private String hideShortDesc;
    private String hideLongDesc;

    public ShowMainWindowAction() {
        super();
        showName = bundle.getString("main.show.name");
        showShortDesc = bundle.getString("main.show.short");
        showLongDesc = bundle.getString("main.show.long");
        hideName = bundle.getString("main.hide.name");
        hideShortDesc = bundle.getString("main.hide.short");
        hideLongDesc = bundle.getString("main.hide.long");
        revalidateName();
    }

    @Override
    protected boolean isWindowVisible() {
        return guiBuilder.isMainWindowVisible();
    }

    @Override
    protected Window getWindow() {
        return guiBuilder.getMainWindow();
    }

    @Override
    protected String getHideName() {
        return hideName;
    }

    @Override
    protected String getHideShortDescription() {
        return hideShortDesc;
    }

    @Override
    protected String getHideLongDescription() {
        return hideLongDesc;
    }

    @Override
    protected String getShowName() {
        return showName;
    }

    @Override
    protected String getShowShortDescription() {
        return showShortDesc;
    }

    @Override
    protected String getShowLongDescription() {
        return showLongDesc;
    }

    @Override
    protected ImageIcon getIcon() {
        // TODO implement
        return null;
    }

    @Override
    protected boolean isSecondWindowVisible() {
        return guiBuilder.isDropTargetVisible();
    }

}
